import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 判断登录状态
    user:localStorage.getItem('userid'),
    // 手机号
    phone:localStorage.getItem('phone'),
    // 科室的时间
    Ydata:null,
  },
  getters: {
   
  },
  mutations: {
    Muser(state,value){
      state.user = value
      localStorage.setItem('userid',value)
    },
    Mphone(state,value){
      state.phone = value
      localStorage.setItem('phone',value)
    },
    Mdata(state,value){
      state.Ydata = value
    },
  },
  actions: {
  },
  modules: {
  }
})
